package com.dayouzi.crawler_monitor.pojo.query;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserAdminQuery", description="管理员信息输入展示对象")
public class UserAdminQuery {

    @ApiModelProperty(value = "主键")
    private Integer id;

    @NotEmpty(message = "账号不能为空")
    @ApiModelProperty(value = "账号")
    private String userName;

    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty(value = "密码")
    private String password;

    @NotNull(message = "角色不能为空")
    @ApiModelProperty(value = "角色")
    private Integer role;

    @NotNull(message = "负责人不能为空")
    @ApiModelProperty(value = "负责人")
    private String person;



}
